package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.SpotTheme;
import cn.wolfcode.luowowo.article.mapper.SpotThemeMapper;
import cn.wolfcode.luowowo.article.service.ISpotThemeService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@Service
public class SpotThemeServiceImpl implements ISpotThemeService {
    @Autowired
    private SpotThemeMapper spotThemeMapper;
    @Override
    public List<SpotTheme> selectAll() {
        List <SpotTheme> spotThemes = spotThemeMapper.selectAll();
        return spotThemes;
    }

    @Override
    public List <SpotTheme> selectbyDestId(Long id) {
        List <SpotTheme> list= spotThemeMapper.selectbyDestId(id);
        return list;

    }
}
